package top.likeqc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.likeqc.entity.CourseStudent;
import top.likeqc.mapper.CourseStudentMapper;
import top.likeqc.service.ICourseStudentService;
import top.likeqc.vo.StudentVO;

/**
 * <p>
 * 选课（课程-学生） 服务实现类
 * </p>
 *
 * @author likeqc
 * @since 2022-04-15
 */
@Service
public class CourseStudentServiceImpl extends ServiceImpl<CourseStudentMapper, CourseStudent> implements ICourseStudentService {
    @Autowired
    CourseStudentMapper courseStudentMapper;

    @Override
    public Page<StudentVO> getStudentListByCourseID(Page<StudentVO> page, Long courseID) {
        Page<StudentVO> studentPage = courseStudentMapper.getStudentListByCourseID(page, courseID);

        return studentPage;
    }
}
